<template>
  <div>
    <div class="top_nav marg_bo_20">
      <!-- <img @click="returnTap"
        class="return_icon"
        src="../../../static/images/me/leftreturn.png"
        alt=""
      /> -->
        <van-icon
        name="arrow-left"
        size="20"
        class="return_icon"
        color="#fff"
        @click="returnTap"
      />
      <span class="nav_title">详情</span>
      <span class="return_icon"></span>
    </div>
    <div class="concent">
      <div class="top_main">
        <img
          src="../../../static/images/me/headimg.png"
          class="main_headimg"
          alt=""
        />
        <div class="main_name_title">
          <div class="main_name">小李</div>
          <div class="main_title">今天天气真好!</div>
        </div>
      </div>
      <div class="main">
        <div class="main_pictures">
          <div v-for="(item, index) in picList" :key="index">
            <img @click="gotoDetailsdes"
              src="../../../static/images/me/headimg.png"
              class="main_pictures_lattice"
              alt=""
            />
          </div>
        </div>
        <span class="main_adderss">昌江黎族自治区，昌江县</span>
        <div class="main_time_moreevent">
          <span class="main_time">2020年8月20日 9:00</span>
          <img
            src="../../../static/images/me/moredot.png"
            alt=""
            class="main_moredot" @click="showpicIcon"
          />
           <div  v-if="isshowpicIcon" class="pic_icon">
            <!-- <img src="../../../static/images/me/live_icon.png" alt="" class="icon"> -->
            <van-icon name="like-o" color="#fff" />
            <span class="mag_10">赞</span>
            <div class="low"></div>
            <van-icon name="other-pay" color="#fff"/>
            <!-- <img src="../../../static/images/me/chat_icon.png" alt="" class="icon"> -->
            <span class="mag_10">评论</span>
             </div>
        </div>
      </div>
      <div class="comment">
        <div class="bulge"></div>
        <div class="comment_live">
          <img
            src="../../../static/images/me/live_icon.png"
            alt=""
            class="live_icon"
          />
          <img
            src="../../../static/images/me/headimg.png"
            alt=""
            class="live_headimg"
            v-for="item in 5"
            :key="item"
          />
        </div>
        <div class="comment_chat" v-for="(item, index) in 3" :key="index">
          <img
            src="../../../static/images/me/chat_icon.png"
            alt=""
            class="chat_icon"
            v-if="index == 0"
          />
          <img
            src="../../../static/images/me/headimg.png"
            class="chat_headimg"
            alt=""
          />
          <div class="comment_main">
            <div class="comment_name_time">
              <span class="comment_name">小李</span>
              <span class="comment_time">1:20</span>
            </div>
            <span class="comment_text">已完成</span>
          </div>
        </div>
      </div>
    </div>
    
    <div class="space"></div>
    <div class="input_comment"> 
        <input type="text" placeholder="评论">
        <img src="../../../static/images/me/look_icon.png" alt="" class="look_icon">
    </div>
    
  </div>
</template>
<script>
export default {
  data() {
    return {
       isshowpicIcon:false,
      picList: 6,
    };

  },
  methods:{
     showpicIcon(){
            this.isshowpicIcon = !this.isshowpicIcon
      
        },
      returnTap(){
          this.$router.go(-1)
      },
      gotoDetailsdes(){
          this.$router.push({path:"/detailsdes"})
      }
  }
};
</script>
<style  scoped>
.top_nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  padding: 0 25px;
  /* background: #eee; */
   background: #4ac7d7;
  color: #fff;
  margin-bottom: 20px;
}
/* .marg_bo_20{
    margin-bottom: 20px;
} */
.return_icon {
  width: 15px;
  height: 15px;
  /* transform: rotate(180deg); */
}
.concent {
  border-bottom: 1px solid #e3e4e5;
}
.top_main {
  display: flex;
  justify-content: flex-start;
  flex-direction: row;
  align-items: flex-start;
  margin-left: 20px;
  margin-right: 10px;
}
.main {
  margin: 0 20px 20px 60px;
}
.main_headimg {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}
.main_name {
  font-size: 18px;
  font-weight: 600;
  color: #5d6f95;
  margin-bottom: 10px;
}
.main_pictures {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
}
.main_pictures_lattice {
  width: 80px;
  height: 80px;
  margin: 0 8px 8px 0;
}
.main_adderss {
  font-size: 12px;
  color: #74839b;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.main_time_moreevent {
    position: relative;

  display: flex;
  justify-content: space-between;
}
.main_moredot {
  width: 30px;
  height: 20px;
}
.main_time {
  color: #b5b5b5;
  font-size: 14px;
}

.comment {
  background: #f8f8f8;
  margin: 0 10px 0px 10px;
  position: relative;
  padding: 5px 0 0 0;
}
.bulge {
  position: absolute;
  top: -5px;
  left: 20px;
  border-radius: 3px;
  background: #f8f8f8;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  z-index: -1;
}
.comment_live {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 40px;
  border-bottom: 1px solid #e3e4e5;
  height: 40px;
}
.live_headimg {
  width: 30px;
  height: 30px;
  margin: 0 5px 5px 0;
}
.live_icon {
  position: absolute;
  width: 18px;
  height: 18px;
  top: 10px;
  left: -30px;
}
.comment_chat {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-left: 40px;
  border-bottom: 1px solid #e3e4e5;
  margin: 10px 0px 0px 40px;
  padding-bottom: 10px;
}
.chat_headimg {
  width: 40px;
  height: 40px;
}
.comment_main {
  width: 80%;
}
.comment_name_time {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: 10px;
}
.comment_name {
  color: #5d6f95;
  font-weight: 600;
}
.comment_time {
  color: #7b7b7b;
  font-size: 12px;
}
.comment_text {
  margin-left: 10px;
}
.chat_icon {
  position: absolute;
  width: 18px;
  height: 18px;
  top: 10px;
  left: -30px;
}
.input_comment{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
     background: #f8f8f8;
     height: 50px;
     border-top: 1px solid #e3e4e5;
     /* padding: 5px;
     margin: 0 10px; */
     display: flex;
     justify-content: space-around;
     align-items: center;
}
.input_comment input{
    width: 85%;
    height: 40px;
    border: none;
    outline: none;
}
.space{
    height: 60px;
}
.look_icon{
    width: 30px;
    height: 30px;
}
.pic_icon{
    position: absolute;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    top: -5px;
    right: 40px;
    width: 150px;
    height: 30px;
    background: #333333;
    border-radius: 5px;
}
.pic_icon span{
    margin-left: 10px;
}
.low{
    width: 1px;
    height: 20px;
    background: #000;
    margin: 0 10px;
}
</style>